package com.example.yaja.yaja.dao;


import com.example.yaja.yaja.entity.Travels;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TravelsMapper {
    int deleteByPrimaryKey(Integer travelsId);

    int insert(Travels record);

    int insertSelective(Travels record);

    Travels selectByPrimaryKey(Integer travelsId);

    int updateByPrimaryKeySelective(Travels record);

    int updateByPrimaryKey(Travels record);

    List<Travels> selectTravelsByNumber(Map<String, Object> params);

    List<Travels> selectByUserId(Integer userId);

    List<Travels> queryAllTravels();

    int updateTravelState(Map<String, Object> params);
}